FROM registry.cn-hangzhou.aliyuncs.com/devinlee/openjdk:8-jdk-alpine
WORKDIR /app
COPY target/security-jwt.jar security-jwt.jar
#设置镜像的时区,避免出现8小时的误差
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8888
ENTRYPOINT java -jar -Dspring.profiles.active=company -Xms256m -Xmx512m security-jwt.jar